package bst

type User struct {
	name  string
	age   uint8
	score uint8
}

func (u *User) compare(another *User) int {
	if u.score == another.score {
		return 0
	} else if u.score > another.score {
		return +1
	}
	return -1
}
